package com.scs.application.core.mvc.dto;

import com.scs.application.core.entity.BaseEntity;
import com.scs.application.core.entity.FlowEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;
/**
 * @Description： 流程变更对象
 */
@Data
public class FlowChangeDTO<E extends BaseEntity> {

    @NotBlank(message = "流程标识不能为空")
    private String flowKey;

    @NotBlank(message = "按钮标识不能为空")
    private String buttonKey;

    private String busId;

    private List<String> busIdList;

    @NotBlank(message = "业务表不能为空")
    private String busTable;
    @NotBlank(message = "业务主键不能为空")
    private String busIdName;
    @NotBlank(message = "业务类型名称不能为空")
    private String busTypeName;

    @NotBlank(message = "流程状态描述不能为空")
    private String flowStatusTextTo;
    @NotBlank(message = "流程状态描述不能为空")
    private String flowStatusTextFrom;

    /** 审批意见 */
    private String comment;

    /** 附件地址 */
    private String attachmentUrl;
    /** 审批所上传的签名 64  */
    private String signBase64;

    //按钮操作显示状态值
    private String valueIf;

    //按钮操作完状态
    private String valueTo;

    //前端对象
    private E entityWeb;
}
